package com.zx.dao.dj;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zx.model.dj.StockMaster;

public interface StockMasterMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StockMaster record);

    int insertSelective(StockMaster record);

    StockMaster selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockMaster record);

    int updateByPrimaryKey(StockMaster record);
    
    List<StockMaster> selStockMasters(@Param("startIndex")Integer startIndex,@Param("pageSize")Integer pageSize, @Param("orderType")int orderType);
    List<StockMaster> selStockMastersCondition(@Param("startIndex")Integer startIndex,@Param("pageSize")Integer pageSize, @Param("orderType")int orderType
            ,@Param("sbrand")String sbrand,@Param("smodel")String smodel,@Param("scolor")String scolor,@Param("ssize")String ssize);
    int selStockMastersCount(@Param("sbrand")String sbrand,@Param("smodel")String smodel,@Param("scolor")String scolor,@Param("ssize")String ssize);

}